package com.ruoyi.purchase.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品进货对象 purchase
 * 
 * @author ruoyi
 * @date 2024-09-26
 */
public class Purchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Integer id;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Integer productId;

    @Excel(name = "商品名称")
    private String productName;

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    /** 供应商ID */
    @Excel(name = "供应商ID")
    private Integer supplierId;
    @Excel(name = "供应商名称")
    private String supplierName;

    /** 支付类型 */
    @Excel(name = "支付类型")
    private String paymentType;

    /** 进货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "进货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseTime;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    /** 操作人ID */
    @Excel(name = "操作人ID")
    private Long operatorId;

    @Excel(name = "操作人名称")
    private String userName;

    /** 进货数量 */
    @Excel(name = "进货数量")
    private Integer purchaseQuantity;

    /** 商品规格 */
    @Excel(name = "商品规格")
    private String productSpec;

    /** 进货价格 */
    @Excel(name = "进货价格")
    private BigDecimal purchasePrice;

    /** 进货总价格 */
    @Excel(name = "进货总价格")
    private BigDecimal totalPrice;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setProductId(Integer productId) 
    {
        this.productId = productId;
    }

    public Integer getProductId() 
    {
        return productId;
    }
    public void setSupplierId(Integer supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Integer getSupplierId() 
    {
        return supplierId;
    }
    public void setPaymentType(String paymentType) 
    {
        this.paymentType = paymentType;
    }

    public String getPaymentType() 
    {
        return paymentType;
    }
    public void setPurchaseTime(Date purchaseTime) 
    {
        this.purchaseTime = purchaseTime;
    }

    public Date getPurchaseTime() 
    {
        return purchaseTime;
    }
    public void setOperatorId(Long operatorId) 
    {
        this.operatorId = operatorId;
    }

    public Long getOperatorId() 
    {
        return operatorId;
    }
    public void setPurchaseQuantity(Integer purchaseQuantity) 
    {
        this.purchaseQuantity = purchaseQuantity;
    }

    public Integer getPurchaseQuantity() 
    {
        return purchaseQuantity;
    }
    public void setProductSpec(String productSpec) 
    {
        this.productSpec = productSpec;
    }

    public String getProductSpec() 
    {
        return productSpec;
    }
    public void setPurchasePrice(BigDecimal purchasePrice) 
    {
        this.purchasePrice = purchasePrice;
    }

    public BigDecimal getPurchasePrice() 
    {
        return purchasePrice;
    }
    public void setTotalPrice(BigDecimal totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice() 
    {
        return totalPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("supplierId", getSupplierId())
            .append("paymentType", getPaymentType())
            .append("purchaseTime", getPurchaseTime())
            .append("operatorId", getOperatorId())
            .append("purchaseQuantity", getPurchaseQuantity())
            .append("productSpec", getProductSpec())
            .append("purchasePrice", getPurchasePrice())
            .append("totalPrice", getTotalPrice())
            .append("remark", getRemark())
            .toString();
    }
}
